package com.wuwei.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @description: OrderController <br>
 * @date: 2021/2/7 18:20 <br>
 * @author: wuwei666 <br>
 * @version: 1.0 <br>
 */
@RestController
@Slf4j
public class OrderController {
    private static final String ZK_URL = "http://provider-zk-8004";

    @Autowired
    private RestTemplate restTemplate;

    @RequestMapping("/order/zk")
    public String orderzk(){
        return restTemplate.getForObject(ZK_URL + "/payment/zk",String.class);
    }

}
